<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    <title>积分兑换</title>
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current bg-light-gray">
      
        <nav class="bar bar-tab punch-card-bar">
          <c:set var="monthlyCourseware" value="${persist.monthlyCourseware(user.id)}"/>
          <a class="tab-item external" href="${ctx.host}/courses/${monthlyCourseware.id}/batches/${persist.batchCourseware(monthlyCourseware.id).id}/units">
            <span class="icon icon-today"></span>
            <span class="tab-label">今日</span>
          </a>
          <a class="tab-item external" href="${ctx.host}/courses">
            <span class="icon icon-lesson"></span>
            <span class="tab-label">课程</span>
          </a>
          <a class="tab-item external active" href="${ctx.host}/profile">
            <span class="icon icon-profile"></span>
            <span class="tab-label">我的</span>
          </a>
        </nav>

        <div class="content">
          <div class="coupon-wrap text-center box-shadow">
          
            <img src="${user.profile.avatar}" class="user-cover" onerror="this.src='${ctx.resource}/image/error.jpg'">
            <div class="userpoint text-center">
              <span>${user.credit}</span>我的积分
            </div>
            <a href="javascript: void(0);" class="button button-fill ft-button-yellow ft-market-btn conversion-btn">积分兑换</a>
          </div>
          
          <div class="coupon-points">
            <div class="appoint-title text-center"><span style="font-size: .95rem;">积分获得</span></div>
          
            <p>坚持连续打卡7天 <span class="pull-right">积分+350</span></p>
            <p>不连续打卡每天 <span class="pull-right">积分+50</span></p>
            <p>邀请好友成功参与运动打卡 <span class="pull-right">积分+1000</span></p>
          </div>
          
        </div>
        
      </div>
    </div>
  </body>
</html>